﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="try.aspx.cs" Inherits="page_primaryEnglish" %>
<%@ Register Assembly="TVControls" Namespace="Microsoft.TV.TVControls" TagPrefix="mrml" %>
<%@ Register assembly="TVControls" namespace="Microsoft.TV.TVControls.Actions" TagPrefix="mrml" %>
<%@ Register assembly="TVControls" namespace="Microsoft.TV.TVControls.Animations" TagPrefix="mrml" %>


<form id="form1" runat="server">

<mrml:TVPage ID="TVPage1" runat="server" 
    Background="../images-jpg/upload/activity/bg_activity_list.jpg" 
    style="position: absolute; height: 480px; width: 853px; top: 15px; left: 10px;">

    <mrml:TVMenu ID="TVMenu1" runat="server" style="position:absolute; top: 70; left: 45px; height: 41px; width: 366px;"  
        GenerateAbsoluteUrl="False" Glow="argb(0,0,0,0)" InitialSelectedMenuItem="TVMenuItem1">
        <mrml:TVMenuItem ID="TVMenuItem1" runat="server" style="position: absolute;top: 0; left: 0px; width:100px;" Text="免费试看"  
            SubMenuID="shikanPanel" Foreground="rgb(13,70,1)" SelectedForeground="rgb(0,0,0)">
        </mrml:TVMenuItem>
        <mrml:TVMenuItem ID="TVMenuItem2" runat="server" style="position: absolute; top: 0; left: 50px; width:100px" Text="观看记录" 
            SubMenuID="logPanel" Foreground="rgb(13,70,1)" SelectedForeground="rgb(0,0,0)">
        </mrml:TVMenuItem>
        <mrml:TVMenuItem ID="TVMenuItem3" runat="server" style="position: absolute; top: 0; left: 50px; width:50px" Text="活动" 
            SubMenuID="hdPanel" Foreground="rgb(13,70,1)" SelectedForeground="rgb(0,0,0)">
        </mrml:TVMenuItem>
        <mrml:TVMenuItem ID="TVMenuItem4" runat="server" style="position: absolute; top: 0; left: 50px; width:100px" Text="资费说明" 
            SubMenuID="zfPanel" Foreground="rgb(13,70,1)" SelectedForeground="rgb(0,0,0)">
        </mrml:TVMenuItem>
    </mrml:TVMenu> 
   
    <mrml:TVHorizontalFlowPanel ID="shikanPanel" runat="server" 
        Style="position: absolute; top:123px; left: 54px; height: 307px; width: 759px;" 
        IsVisible="false">   

            <mrml:TVXmlDataSource ID="shikan_menu" runat="server" 
                Style="position: absolute; left: 0px; top: 0px;" 
                Url="../Data/activity/free.xml" />   
 
            <mrml:TVPhysicsTable ID="tpt" runat="server" Style="position: absolute; top:0px; left: 100px; height: 265px; width: 450px;"
                 autoFlow="Horizontal" ElementWidth="450" AlignCursors="Slide" 
                DataBinder="XmlDataBinder,shikan_menu,listitems" DataSourceSemantics="Flat">
            
                <mrml:TVPhysicsRowTemplate ID="trt" AutoFlow="Horizontal" runat="server" ElementHeight="36" ElementWidth="400"
                     HeaderTemplate="header" Style="position: absolute; top:5px; left: 0px; height: 0px; width: 400px;"
                     TemplateName="Row" Background="rgb(153, 215, 130)" >
                     
                    <mrml:TVPhysicsTemplate ID="tpt1" runat="server" OnClick="CourseSelect.Click" OnHighlight="setLableDetialAction refreshImgAction"
                       Style="position: absolute; height: 40px; width: 400px;" TemplateName = "Entry" StyleClass = "Button.Menu"
                       RenderDepth="Both" VerticalAlign="Center" FontStyle="Reg24" ClipChildren="true" Ellipsis="Allowed" Text="$(@title)" 
                       FocusBackground="rgb(47, 112, 22)" Foreground="rgb(13, 70, 1)">
                        
                        <mrml:TVActions ID="TVActions3" runat="server">
                            <mrml:NavigateAction  Name="CourseSelect.Click" Data="$(@url)"/>
                            <mrml:SetAction Name="setLableDetialAction" PropertyName="value" PropertyValue="$(@detail)" Target="courseDetailLable"/>
                            <mrml:RefreshAction Name="refreshImgAction" Data="$(@imgUrl)" Target="courseDetailImg" />
                        </mrml:TVActions>
                    </mrml:TVPhysicsTemplate>
                </mrml:TVPhysicsRowTemplate>

                <mrml:TVPhysicsTemplate ID="tpt2" runat="server" Style="position: absolute; top:-10px; left:0px; height: 69px; width: 495px;"
                   TemplateName = "header" Foreground="argb(255, 147, 195, 225)" RenderDepth="Background" FontStyle="Bold39">
                    <mrml:TVPhysicsTemplate id="tpt3" runat="server" 
                        Style="position: absolute; top:10px; left:420px; height: 25px; width: 25px;" background="image(file:/Arrow_Scroll_Up.png)" 
                        physicsfade="and(gt(endscrollposition.vertical),selected.horizontal)"></mrml:TVPhysicsTemplate> 
                    <mrml:TVPhysicsTemplate id="tpt4" runat="server" 
                        Style="position: absolute; top:250px; left:420px; height: 25px; width: 25px;" 
                        background="image(file:/Arrow_Scroll_Down.png)" 
                        physicsfade="and(gt(endscrollposition.vertical),selected.horizontal)" />    
                </mrml:TVPhysicsTemplate>
                
            </mrml:TVPhysicsTable>

            
         <mrml:TVVerticalFlowPanel ID="courseDetailPanel1" runat="server" 
                Style="position: absolute; top:0px; left: 550px; height: 500px; width: 300px;" >   
            
            <mrml:TVImage ID="courseDetailImg"  runat="server" 
                style="left: 0px; top: 0px; width:300px; height:100px;"  >
            </mrml:TVImage>
            
            <mrml:TVLabel ID="courseDetailLable" runat="server" 
                    Background="argb(158,153,215,130)" Foreground="rgb(13,70,1)"  MaxHeight="150"  
                    Ellipsis="Allowed" FontStyle="Reg20" Margin="rect(0,0,0,0)" 
                    style="top: 200px; left: 0px;  width:300px; height:150px;" >
            </mrml:TVLabel>
 
         </mrml:TVVerticalFlowPanel> 
 
    </mrml:TVHorizontalFlowPanel> 

    <mrml:TVHorizontalFlowPanel ID="logPanel" runat="server" 
        Style="position: absolute; top:123px; left: 54px; height: 307px; width: 759px;" 
        IsVisible="false">   

            <mrml:TVXmlDataSource ID="log_menu" runat="server" 
                Style="position: absolute; left: 0px; top: 0px;" 
                Url="../Data/activity/playLog.xml" />   
 
            <mrml:TVPhysicsTable ID="TVPhysicsTable1" runat="server" Style="position: absolute; top:0px; left: 100px; height: 265px; width: 450px;"
                 autoFlow="Horizontal" ElementWidth="450" AlignCursors="Slide" 
                DataBinder="XmlDataBinder,log_menu,listitems" DataSourceSemantics="Flat">
            
                <mrml:TVPhysicsRowTemplate ID="TVPhysicsRowTemplate1" AutoFlow="Horizontal" runat="server" ElementHeight="36" ElementWidth="400"
                     HeaderTemplate="header" Style="position: absolute; top:5px; left: 0px; height: 0px; width: 400px;"
                     TemplateName="Row" Background="rgb(153, 215, 130)" >
                     
                    <mrml:TVPhysicsTemplate ID="TVPhysicsTemplate1" runat="server" OnClick="CourseSelect.Click" OnHighlight="setLableDetialAction refreshImgAction"
                       Style="position: absolute; height: 40px; width: 400px;" TemplateName = "Entry" StyleClass = "Button.Menu" 
                       RenderDepth="Both" VerticalAlign="Center" FontStyle="Reg24" ClipChildren="true" Ellipsis="Allowed" Text="$(@title)" 
                       FocusBackground="rgb(47, 112, 22)" Foreground="rgb(13, 70, 1)">
                        
                        <mrml:TVActions ID="TVActions1" runat="server">
                            <mrml:NavigateAction  Name="CourseSelect.Click" Data="$(@url)"/>
                            <mrml:SetAction Name="setLableDetialAction" PropertyName="value" PropertyValue="$(@detail)" Target="courseDetailLable2"/>
                            <mrml:RefreshAction Name="refreshImgAction" Data="$(@imgUrl)" Target="courseDetailImg2" />
                        </mrml:TVActions>
                    </mrml:TVPhysicsTemplate>
                </mrml:TVPhysicsRowTemplate>

                <mrml:TVPhysicsTemplate ID="TVPhysicsTemplate2" runat="server" Style="position: absolute; top:-10px; left:0px; height: 69px; width: 495px;"
                   TemplateName = "header" Foreground="argb(255, 147, 195, 225)" RenderDepth="Background" FontStyle="Bold39">
                    <mrml:TVPhysicsTemplate id="TVPhysicsTemplate3" runat="server" 
                        Style="position: absolute; top:10px; left:420px; height: 25px; width: 25px;" background="image(file:/Arrow_Scroll_Up.png)" 
                        physicsfade="and(gt(endscrollposition.vertical),selected.horizontal)"></mrml:TVPhysicsTemplate> 
                    <mrml:TVPhysicsTemplate id="TVPhysicsTemplate4" runat="server" 
                        Style="position: absolute; top:250px; left:420px; height: 25px; width: 25px;" 
                        background="image(file:/Arrow_Scroll_Down.png)" 
                        physicsfade="and(gt(endscrollposition.vertical),selected.horizontal)" />    
                </mrml:TVPhysicsTemplate>
                
            </mrml:TVPhysicsTable>

            
         <mrml:TVVerticalFlowPanel ID="TVVerticalFlowPanel1" runat="server" 
                Style="position: absolute; top:0px; left: 550px; height: 307px; width: 300px;" >   
            
            <mrml:TVImage ID="courseDetailImg2"  runat="server" 
                style="left: 0px; top: 50px; width:300px; height:100px;" >
            </mrml:TVImage>
            
            <mrml:TVLabel ID="courseDetailLable2" runat="server" 
                    Background="argb(158,153,215,130)" Foreground="rgb(13,70,1)"  MaxHeight="150"  
                    Ellipsis="Allowed" FontStyle="Reg20" Margin="rect(0,0,0,0)" 
                    style="top: 200px; left: 0px;  width:300px; height:150px;" >
            </mrml:TVLabel>
 
         </mrml:TVVerticalFlowPanel> 
 
    </mrml:TVHorizontalFlowPanel>


    <mrml:TVHorizontalFlowPanel ID="hdPanel" runat="server" 
        Style="position: absolute; top:123px; left: 0px; height: 307px; width: 759px;" 
        IsVisible="false">   

         <mrml:TVPanel ID="TVPanel1" runat="server"
            Style="position: absolute; left: 0px; height: 100px; width: 50px;" >
             <mrml:TVImage ID="TVImage1"  runat="server" Url="../images-jpg/upload/zt/arrow_left_gray.png"
                style="left: 5px; width:50px; height:76px; top:100px; ">
            </mrml:TVImage>
        </mrml:TVPanel>
        
        <mrml:TVXmlDataSource ID="hd_menu" runat="server" Style="position: absolute;" Url="../Data/activity/ad.xml" />   
        <mrml:TVPhysicsGrid ID="hdGrid" runat="server" Style="position: absolute; left:5px; width: 750px; top: 122px; height: 290px;" 
                DataBinder="XmlDataBinder,hd_menu,*/listitems" ElementWidth="190"  ElementHeight="400" Columns="4" Rows="1" >

              <mrml:TVPhysicsCursor ID="TVPhysicsCursor1" runat="server" 
                  Style="position: absolute; width:200px; height:300px; top:-5px; left:0px" 
                  FocusBackground="../images-jpg/newVer/subject_selector.png"></mrml:TVPhysicsCursor>

              <mrml:TVPhysicsTemplate ID="psTemp" Style="position: absolute; top: 5; left: 10; width: 150; height: 87;" 
                     TemplateName="entry" FontStyle="Reg16" HorizontalAlign="Center" Foreground="ARGB(255,192,192,192)" runat="server"
                      OnClick="gotoSelectSubject" >

                     <mrml:TVPhysicsImageTemplate ID="TVPhysicsImageTemplate1" runat="server" 
                        Style="position: absolute; width: 175px; height: 290px; top: 0px; left:0px;"  DataPath="@iconUrl" >
                    </mrml:TVPhysicsImageTemplate>

                     <mrml:TVActions ID="TVActions2" runat="server">
                        <mrml:NavigateAction  Name="gotoSelectSubject" Data="$(@url)"/>
                    </mrml:TVActions>
              </mrml:TVPhysicsTemplate>
        </mrml:TVPhysicsGrid>  
    
        <mrml:TVPanel ID="TVPanel2" runat="server"
            Style="position: absolute; left: 0px; height: 100px; width: 50px;" >
             <mrml:TVImage ID="TVImage2"  runat="server" Url="../images-jpg/upload/zt/arrow_right_gray.png"
                style="left: 0px; width:50px; height:76px; top:100px; ">
            </mrml:TVImage>
        </mrml:TVPanel>
    </mrml:TVHorizontalFlowPanel>

    <mrml:TVVerticalFlowPanel ID="zfPanel" runat="server" 
        Style="position: absolute; top:140px; left: 54px; height: 307px; width: 759px;" 
        IsVisible="false">   
        
            <mrml:TVLabel ID="zfLbl" runat="server"  
                Background="argb(158,153,215,130)" Foreground="rgb(13,70,1)"  
                HorizontalAlign="Left"  FontStyle="Reg22" 
                Style="position: absolute; top: 140px; left: 200px; height: 200px; width: 750px;" 
                >
           </mrml:TVLabel>
           
            <mrml:TVButton ID="TVButton1" runat="server" 
                Background="argb(255,13,70,1)" Text="确 定 购 买" Foreground="argb(0,0,8,0)"         
                Style="position: absolute; color:White; top: 340px; left: 200px; text-align:center; font-size:20px; font-weight:bold; height: 40px; line-height:35px; width: 750px;" 
                FocusBackground="argb(255,13,70,1)" FocusGlow="argb(255,26,176,100)" 
                HighlightColor="argb(255,0,116,31)" HorizontalAlign="Center" IsCDataText="True" 
                Padding="rect(20,5,0,0)" VerticalAlign="Center" >
            </mrml:TVButton>
    
    </mrml:TVVerticalFlowPanel>
        

</mrml:TVPage> 
</form>
 